package cn.edu.nit.common.exception;

import lombok.Data;

import java.io.Serializable;

/**
 * @Author xiaobai
 * @Date 2022/8/22 19:25
 * @Version 1.0.0
 */
@Data
public class SysBaseError extends RuntimeException implements Serializable {

    private String msg;
    private int code = 500;


    public SysBaseError(String msg) {
        super(msg);
        this.msg = msg;
    }

    public SysBaseError(String msg, int code) {
        super(msg);
        this.code = code;
        this.msg = msg;
    }
}
